package com.zpf.feign;

import org.springframework.stereotype.Component;

/**
 * @ClassName: UserFeignCustomSecondClientFallback
 * @Description: Hystrix 客户端回退机制类
 * @Autor: ZPF
 * @Date: 2021/1/15 9:39
 **/
@Component
public class UserFeignCustomSecondClientFallback implements UserFeignCustomSecondClient {
    @Override
    public String findEurekaInfo(String serviceName) {
        System.out.println("== findEurekaInfo Fallback " + Thread.currentThread().getThreadGroup() + " - " + Thread.currentThread().getId() + " - " + Thread.currentThread().getName());
        return "provider-user";
    }
}
